package user;

import operation.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-05-13
 * Time: 13:31
 */
public class Administrator extends User {
    public Administrator(String name) {
        super(name);
        iOperations = new IOperation[]{
                new ExitSystem(),
                new AddBook(),
                new FindBook(),
                new ShowBook(),
                new DeleteBook()
        };
    }

    @Override
    public int menu() {
        System.out.println("请输入您的操作:");
        System.out.println("    1.添加书籍 2.查找书籍");
        System.out.println("3.展示书籍 4.删除书籍 0.退出系统");
        Scanner scanner = new Scanner(System.in);
        int choice = scanner.nextInt();
        return choice;
    }
}
